use strict;
use warnings;

use CPAN;
use CPAN::Config;


use CPANStuff;
my $cpanstuff = CPANStuff->new();

# Setting the FTP_PASSIVE=1 environment variable avoids another common problem 
# where active File Transfer Protocol (FTP) connections are blocked by a local firewall.
# http://sial.org/howto/perl/life-with-cpan/
$ENV{FTP_PASSIVE}=1;

my $cmd='sudo apt-get -y install libpari1 libpari1-dev pari-extra pari-gp libgmp3-dev libgmpxx3 libgmp3c2 libgmp3-doc';
system($cmd);
system('./fetch-math-pari-2.1.7.sh');

for my $mod ( qw( Math::Pari
		  Math::GMP
		  Net::SSH::Perl ) ) {
    $cpanstuff->install_wrapper($mod);
}

